<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>青鸟影院管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/layui.css" media="all">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/common.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"><span>青鸟影院管理系统</span></div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="updateAdmin.html" >
                   	 <img src="${pageContext.request.contextPath}/img/default.png" class="layui-nav-img layui-anim layui-anim-rotate"/>
                   	 <span id="user_name"></span>
                </a>
            </li>
              <li class="layui-nav-item"><a href="adminNo">退出</a></li>
        </ul>
    </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test" id="leftside">
                    <script id="side" type="text/html">
                        {{#  layui.each(d.list, function(index, item){ }}
                        <li class="layui-nav-item">
                            <a href="{{item.url}}"><i class="layui-icon {{item.icon}}"></i> {{item.name}}</a>
                        </li>
                        {{#  }); }}
                        {{#  if(d.list.length === 0){ }}
                        无数据
                        {{#  } }}
                    </script>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            <!-- 主体区域开始 -->
            <!--当前位置开始-->
            <div class="layui-card layadmin-header">
                <span class="layui-breadcrumb">
                    <a href="index.html">系统</a>
                    <a href="users.html">用户管理</a>
                    <a><cite>修改人员</cite></a>
                </span>
            </div>
            <!--当前位置结束-->
            <div class="layui-row">
                <div class="layui-tab" id="system">
                    <form class="layui-form" action="${pageContext.request.contextPath}/UserByUpdate" method="post" id="system_form">
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" value="${user.memberName}" name="name">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">会员昵称</label>
                            <div class="layui-input-block">
                                <input type="text" id="names" name=memberName required  lay-verify="required" value="${user.memberName}" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">手机号</label>
                            <div class="layui-input-block">
                                <input type="phone" id="iphone" name="memberPhone" required  lay-verify="required" value="${user.memberPhone}" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">会员类型</label>
                            <div class="layui-input-inline">
                                <select class="sexs"  name="memberTemp" lay-filter="aihao">
                                    <c:choose>
                                    <c:when test="${user.memberTemp==0}">
                                        <option value="0">大众会员</option>
                                        <option value="1">普通会员</option>
                                    </c:when>
                                    <c:otherwise>
                                        <option value="1">普通会员</option>
                                        <option value="0">大众会员</option>
                                    </c:otherwise>
                                    </c:choose>
                                </select>
                            </div>
                        </div>
                         <div class="layui-form-item">
                            <label class="layui-form-label">折扣</label>
                            <div class="layui-input-inline">
                                <select class="sexs"  name="memberDiscount" lay-filter="aihao">
                                    <c:choose>
                                        <c:when test="${user.memberDiscount==0.85}">
                                            <option value="1">1</option>
                                            <option value="0.85">0.85</option>
                                        </c:when>
                                        <c:otherwise>
                                            <option value="0.85">0.85</option>
                                            <option value="1">1</option>
                                        </c:otherwise>
                                    </c:choose>
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">识别码</label>
                            <div class="layui-input-block">
                                <input type="number" id="iphone" name="memberMunber" required  lay-verify="required" value="${user.memberMunber}" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="submit" class="layui-btn" lay-submit lay-filter="formDemo">修改</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!--主体区域结束-->
        </div>
       <div class="layui-footer" style="text-align:center">
        <!-- 底部固定区域 -->
        © 版权管理
    </div>
    </div>
    <script src="${pageContext.request.contextPath}/js/layui.js" charset="utf-8"></script>
    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js"></script>
    <script src="${pageContext.request.contextPath}/js/common.js"></script>
    <script src="${pageContext.request.contextPath}/js/jquery.cookie.js"></script>
    <script src="${pageContext.request.contextPath}/js/urlsqit.js"></script>
</body>
</html>
